﻿@model IList<Inovout.Cloud.Models.Project>
<div class="w-1">
    <div class="wgt">
        <div class="w-1-6">
            <nav class="w10 project-leftmenu">
                <ul>
                    @{
                        string controllerName = Html.ViewContext.RouteData.Values["controller"].ToString().ToLower();
                        if (controllerName == "project")
                        {
                        <li class="leftmenuSelected"><a href="#">项目</a>
                        </li>
                        }
                        else
                        {
                        <li><a href="#">项目</a>
                        </li>
                        }
                    }
                </ul>
            </nav>
        </div>
        <div class="project-list w-5-6">
            <div class="w-1">
                <a data-click-command="page.showDialog('@Url.Action("Create", "Project")',600,400).done('projectList.insertNewRow(data)')">创建项目</a>
            </div>
            <table id="projectList" class="dataTable w-1">
                <colgroup>
                    <col class="w20" />
                    <col class="w-1-5" />
                    <col class="w-1-5" />
                    <col class="w-1-5" />
                    <col class="w-1-5" />
                </colgroup>
                <thead>
                    <tr>
                        <th>项目名称</th>
                        <th>项目编号</th>
                    </tr>
                </thead>
                <tbody>
                    <tr id="tr_tmplate" class="template">
                        <td>
                            @*<input type="checkbox" name="ck_project" data-click-command="projectList.selectRow(this)" />*@
                            <a href= '@Url.Action("My", "Product")?projectId={{:Id}}'>{{:Title}}</a>
                        </td>
                        <td><a href= '@Url.Action("My", "Product")?projectId={{:Id}}'>{{:Name}}</a></td>
                    </tr>
                    @foreach (var item in Model)
                    { 
                        <tr>
                            <td>
                                @*<input type="checkbox" name="ck_project" data-click-command="tb_project.selectRow(this)" />*@
                                <a href='@Url.Action("My","Product", new { projectId = @item.Id})'>@item.Title</a>
                            </td>
                            <td><a href='@Url.Action("My","Product", new { projectId = @item.Id})'>@item.Name</a>
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>

